package com.exadel;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: alec
 * Date: 15.01.13
 * Time: 10:19
 * To change this template use File | Settings | File Templates.
 */
public class Connect implements Connection {

    private Document htmlDoc;

    @Override
    public void connect(String path){
        try{
            htmlDoc = new Document("");
            File f = new File(path);
            htmlDoc = Jsoup.connect(path).get();
        }
        catch(IOException exc){

        }
    }
    @Override
    public Document getDocument() {
        return htmlDoc;
    }
}
